/**
* @file WatchdogClientAgent.h
* @brief
* 之前考虑到watchdog之间需要通信，故写此类，后因为不需要状态同步，故此类目前没有用
* 
* @author Wang haoyu
* @email 136046355@qq.com
*/
#ifndef __WATCHDOGCLIENTAGENT_H__
#define __WATCHDOGCLIENTAGENT_H__

#include "common/comm/TCPAgent.h"

class WatchdogClientAgent : public TCPAgent{
  private:
    
  public:
    WatchdogClientAgent();
    WatchdogClientAgent(const SocketAddress &addr);
    WatchdogClientAgent(const TCPSocket &sock, const SocketAddress &addr);
    ~WatchdogClientAgent();

    void readBack(InReq & );
    void writeBack( bool );
    int sendPackage(MsgHeader &header, const char *dataStr = NULL);
    void recycler( void );

};

#endif // __WATCHDOGCLIENTAGENT_H__